package com.zhilifang.modules.zlf.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhilifang.modules.zlf.dao.ProductMapper;
import com.zhilifang.modules.zlf.entity.Product;
import com.zhilifang.modules.zlf.service.ProductService;
import com.zhilifang.modules.zlf.utils.QueryString;

import java.util.List;

@Service("productService")
public class ProductServiceImpl implements ProductService {

    @Autowired
    private ProductMapper productMapper;

	@Override
	public List<Product> selecProductListr(int id ) {
		// TODO Auto-generated method stub
		return productMapper.selecProductListr(id);
	}

	@Override
	public List<Product> selectProductPageQueryString(QueryString queryString) {
		// TODO Auto-generated method stub
		return productMapper.selectProductPageQueryString(queryString);
	}

	@Override
	public Product selectProductById(int id) {
		// TODO Auto-generated method stub
		return productMapper.selectProductById(id);
	}

	@Override
	public void deleteProductIds(int[] ids) {
		// TODO Auto-generated method stub
		productMapper.deleteProductIds(ids);
	}

	@Override
	public List<Product> selecProductListrAll(String name, String[] ids) {
		// TODO Auto-generated method stub
		return productMapper.selecProductListrAll(name, ids);
	}

	@Override
	public List<Product> selecProductInIds(String[] ids) {
		// TODO Auto-generated method stub
		return productMapper.selecProductInIds(ids);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return productMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Product record) {
		// TODO Auto-generated method stub
		return productMapper.insert(record);
	}

	@Override
	public int insertSelective(Product record) {
		// TODO Auto-generated method stub
		return productMapper.insertSelective(record);
	}

	@Override
	public Product selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return productMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Product record) {
		// TODO Auto-generated method stub
		return productMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Product record) {
		// TODO Auto-generated method stub
		return productMapper.updateByPrimaryKey(record);
	}



}